package spring.factory;


public interface SingletonBeanRegistry {

    void registerSingleton(String beanName, Object singletonObject);

    Object getSingleton(String beanName);

    Object getSingletonByType(String clsName);

    boolean containsSingleton(String beanName);

    void addSingletonFactory(String beanName, ObjectFactory<?> singletonFactory);

    void removeSingleton(String beanName);

    void registerTransactionPointCut(String name);

    boolean beginTransactionIfNecessary(String name);

}
